import { MockMethod } from 'vite-plugin-mock'
const menu = {
  id: '1572389071211335680',
  userId: '111',
  employeeId: 'admin',
  userName: 'admin',
  userType: '1',
  areaCode: '01',
  menus: [
    {
      permissionName: '基础资料',
      permissionUrl: '/basicData/index',
      permissionLogo: 'icon-ziliao',
      displayOrder: 1,
      permissionType: '1',
      group: '/basicData/index',
      children: [
        {
          permissionName: '单位资料信息',
          routeName: 'UnitInformation',
          permissionUrl: '/basicData/unitInformation',
          permissionLogo: '',
          displayOrder: 1,
          permissionType: '2',
          group: '/basicData/index',
          children: []
        },
        {
          permissionName: '集团账号审核',
          routeName: 'UnitAccountAudit',
          permissionUrl: '/basicData/unitAccountAudit',
          permissionLogo: '',
          displayOrder: 2,
          permissionType: '2',
          group: '/basicData/index',
          children: []
        },
        {
          permissionName: '集团账号管理',
          routeName: 'UnitAccountStatistics',
          permissionUrl: '/basicData/unitAccountStatistics',
          permissionLogo: '',
          displayOrder: 2,
          permissionType: '2',
          group: '/basicData/index',
          children: []
        }
      ]
    },
    {
      permissionName: '企业上报信息管理',
      permissionUrl: '/enterpriseReport/index',
      permissionLogo: 'icon-jurassic_danju',
      displayOrder: 2,
      permissionType: '1',
      group: '/enterpriseReport/index',
      children: [
        {
          permissionName: '债务上报审核',
          routeName: 'DebtAudit',
          permissionUrl: '/enterpriseReport/debtAudit',
          permissionLogo: '',
          displayOrder: 1,
          permissionType: '2',
          group: '/enterpriseReport/index',
          children: []
        },
        {
          permissionName: '企业上报退回申请',
          routeName: 'DebtSendBack',
          permissionUrl: '/enterpriseReport/debtSendBack',
          permissionLogo: '',
          displayOrder: 2,
          permissionType: '2',
          group: '/enterpriseReport/index',
          children: []
        },
        {
          permissionName: '还款/付息审核',
          routeName: 'PayOrRepay',
          permissionUrl: '/enterpriseReport/payOrRepay',
          permissionLogo: '',
          displayOrder: 3,
          permissionType: '2',
          group: '/PayOrRepay/index',
          children: []
        },
        {
          permissionName: '财务信息审核',
          routeName: 'Finance',
          permissionUrl: '/enterpriseReport/finance',
          permissionLogo: '',
          displayOrder: 4,
          permissionType: '2',
          group: '/enterpriseReport/index',
          children: []
        }
      ]
    },
    {
      permissionName: '用户管理',
      permissionUrl: '/userManagement/index',
      permissionLogo: 'icon-huiyuan',
      displayOrder: 3,
      permissionType: '1',
      group: '/userManagement/index',
      children: [
        {
          permissionName: '角色信息',
          routeName: 'Role',
          permissionUrl: '/userManagement/role',
          permissionLogo: '',
          displayOrder: 1,
          permissionType: '2',
          group: '/userManagement/index',
          children: []
        },
        {
          permissionName: '用户信息',
          routeName: 'User',
          permissionUrl: '/userManagement/user',
          permissionLogo: '',
          displayOrder: 2,
          permissionType: '2',
          group: '/userManagement/index',
          children: []
        }
      ]
    },
    {
      permissionName: '系统功能管理',
      permissionUrl: '/systemFunction/index',
      permissionLogo: 'icon-basic-information_line',
      displayOrder: 4,
      permissionType: '1',
      group: '/systemFunction/index',
      children: [
        {
          permissionName: '用户监管',
          routeName: 'UserSupervise',
          permissionUrl: '/systemFunction/userSupervise',
          permissionLogo: '',
          displayOrder: 1,
          permissionType: '2',
          group: '/systemFunction/index',
          children: []
        },
        {
          permissionName: '区域迁移',
          routeName: 'AreaMove',
          permissionUrl: '/systemFunction/areaMove',
          permissionLogo: '',
          displayOrder: 2,
          permissionType: '2',
          group: '/systemFunction/index',
          children: []
        },
        {
          permissionName: '数据纠偏',
          routeName: 'DataRedress',
          permissionUrl: '/systemFunction/dataRedress',
          permissionLogo: '',
          displayOrder: 3,
          permissionType: '2',
          group: '/systemFunction/index',
          children: []
        },
        {
          permissionName: '报表定制',
          routeName: 'TableSetting',
          permissionUrl: '/systemFunction/tableSetting',
          permissionLogo: '',
          displayOrder: 4,
          permissionType: '2',
          group: '/systemFunction/index',
          children: []
        }
      ]
    },
    {
      permissionName: '系统管理',
      permissionUrl: '/system/index',
      permissionLogo: 'icon-shezhi1',
      displayOrder: 5,
      permissionType: '1',
      group: '/system/index',
      children: [
        {
          permissionName: '系统参数',
          routeName: 'SystemParams',
          permissionUrl: '/system/systemParams',
          permissionLogo: '',
          displayOrder: 1,
          permissionType: '2',
          group: '/system/index',
          children: []
        },
        {
          permissionName: '数据字典',
          routeName: 'DataDics',
          permissionUrl: '/system/dataDics',
          permissionLogo: '',
          displayOrder: 2,
          permissionType: '2',
          group: '/system/index',
          children: []
        },
        {
          permissionName: '系统功能设定',
          routeName: 'Menu',
          permissionUrl: '/system/menu',
          permissionLogo: '',
          displayOrder: 3,
          permissionType: '2',
          group: '/system/index',
          children: []
        }
      ]
    }
  ]
}

export default [
  {
    url: '/debt/mock/api/users/currentUser',
    method: 'get',
    response: () => {
      return { code: '200', message: '请求成功', data: menu }
    }
  }
] as MockMethod[]
